<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>“双随机”抽取结果</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="">“双随机”抽取结果</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="drRw" action="" method="post" class="breadcrumb form-search">
		<ul class="ul-form">
			<li class="clearfix" style="text-align:center"><strong>${rw.rwMc}&nbsp;&nbsp;抽取结果</strong></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
    <form:form id="inputForm" modelAttribute="drRw" action="${ctx}/rw/drRw/modifyflag" method="post" class="form-horizontal">
    	<form:hidden path="id"/>
        	<div class="control-group" style="vertical-align:middle">
                <div class="controls">
                    <table id="contentTable" class="table table-striped table-bordered table-condensed" style="width:80%">
                        <thead>
                            <tr>
                                <th>分组</th>
                                <th>执法人员</th>
                                <th>执法对象</th>
                                <th>组长</th>
                            </tr>
                        </thead>
                        <tbody>
                        	<c:forEach items="${st}" var="st" varStatus="s">
                                <tr>
                                	<td>${st.groupName}</td>
                                    <td>${st.users}</td>
                                    <td>${st.objects}</td>
                                    <td>${st.captain}</td>
                                </tr>
                            </c:forEach>    
                        </tbody>
                    </table>            
                </div>
            </div>      
		<div class="form-actions">
			<c:if test="${drRw.rwFlag=='-1'}"><shiro:hasPermission name="rw:drRw:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="生成任务"/>&nbsp;</shiro:hasPermission></c:if>
            <input id="btnCancel" class="btn" type="button" value="返 回" onClick="history.go(-1)"/>
		</div>            
    </form:form>

</body>
</html>